package com.lsh.oms.core.proxy.model.strategy;

import com.lsh.oms.core.enums.StrategyRequestAttrType;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;

/**
 * Project Name: StrategyAttr
 * 北京链商电子商务有限公司
 *
 * @author wangliutao
 * Date: 18/12/29
 * Package Name: com.lsh.atp.core.model.strategy
 * Description:
 */
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class StrategyAttr implements Serializable {
    private static final long serialVersionUID = 319319552494824L;

    /**
     * 属性值
     */
    private String value;

    /**
     * 属性类型 1、区域  2 围栏  3 用户 4 机构  5 货主  6 DC
     */
    private Integer type;

    public StrategyAttr(StrategyRequestAttrType type, String attrValue) {
        this.value = attrValue;
        this.type = type.getCode();
    }
}
